package com.ruoyi.nucleicacid.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.nucleicacid.mapper.ResidenttaskMapper;
import com.ruoyi.nucleicacid.domain.Residenttask;
import com.ruoyi.nucleicacid.service.IResidenttaskService;

/**
 * 住户核酸任务Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-10-18
 */
@Service
public class ResidenttaskServiceImpl implements IResidenttaskService 
{
    @Autowired
    private ResidenttaskMapper residenttaskMapper;

    /**
     * 查询住户核酸任务
     * 
     * @param id 住户核酸任务主键
     * @return 住户核酸任务
     */
    @Override
    public Residenttask selectResidenttaskById(Long id)
    {
        return residenttaskMapper.selectResidenttaskById(id);
    }

    /**
     * 查询住户核酸任务列表
     * 
     * @param residenttask 住户核酸任务
     * @return 住户核酸任务
     */
    @Override
    public List<Residenttask> selectResidenttaskList(Residenttask residenttask)
    {
        return residenttaskMapper.selectResidenttaskList(residenttask);
    }

    /**
     * 新增住户核酸任务
     * 
     * @param residenttask 住户核酸任务
     * @return 结果
     */
    @Override
    public int insertResidenttask(Residenttask residenttask)
    {
        return residenttaskMapper.insertResidenttask(residenttask);
    }

    /**
     * 修改住户核酸任务
     * 
     * @param residenttask 住户核酸任务
     * @return 结果
     */
    @Override
    public int updateResidenttask(Residenttask residenttask)
    {
        return residenttaskMapper.updateResidenttask(residenttask);
    }

    /**
     * 批量删除住户核酸任务
     * 
     * @param ids 需要删除的住户核酸任务主键
     * @return 结果
     */
    @Override
    public int deleteResidenttaskByIds(Long[] ids)
    {
        return residenttaskMapper.deleteResidenttaskByIds(ids);
    }

    /**
     * 删除住户核酸任务信息
     * 
     * @param id 住户核酸任务主键
     * @return 结果
     */
    @Override
    public int deleteResidenttaskById(Long id)
    {
        return residenttaskMapper.deleteResidenttaskById(id);
    }
}
